<!DOCTYPE html>
<html lang="Zh-CN">
<html>
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title><?php echo $title; ?> - SMU Poster Console</title>
        <link rel="stylesheet" href="<?php echo base_url() . 'css/bootstrap.css' ?>">
        <link rel="stylesheet" href="<?php echo base_url() . 'css/login.css' ?>">
        <link rel="icon" type="image/x-icon" href="<?php echo base_url() . 'favicon.ico' ?>"/>
        <script src="<?php echo base_url() . 'js/jquery-1.9.0.js' ?>"></script>
        <script src="<?php echo base_url() . 'js/bootstrap.js' ?>"></script>
    </head>

    <body>
        <div class="container">
            <div class="row">
                <div class="col-sm-4 col-sm-offset-4">
                    <div <?php $err = validation_errors(); echo !(empty($error) && empty($err)) ? 'class="alert alert-danger text-center"' : '' ?>><?php echo validation_errors(); ?>
                    <?php echo $error ?></div>
                    <?php echo form_open('poster_admin/login', array('class'=>'form-horizontal','role'=>'form')); ?>
                    <div class="col-sm-sm-4 col-sm-offset-4"><h2>登录后台</h2></div>

                    <div class="form-group">
                            <div class="col-sm-9 col-sm-offset-2">
                                <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
                                <input type="text" class="form-control" id="username" name="username" placeholder="账号"/>
                                    </div>
                    </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-9 col-sm-offset-2">
                            <div class="input-group">
                                <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>
                            <input type="password" class="form-control" id="password" name="password" placeholder="密码"/>
                        </div>
                    </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                    <button type="submit" class="btn btn-default">登录</button>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <div id="footer">
            <div class="container">
                <p class="text-center copyright text-muted">Designed By <a href="http://mstc.shmtu.edu.cn/">微软技术俱乐部</a></p>
            </div>
        </div>
    </body>
</html>